<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title>广告统计</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no,email=no,address=no"/>
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="../css/common.css"/>
    <link rel="stylesheet" href="../css/main.css"/>
    <style>
        .ad_list .item + .item{
            border-top: 1px solid #e5e5e5;
        }
    </style>
</head>
<body>
    <article>
        <section class="ad_list plr24 bw">
            <!--<a class="flex_sb ptb20 item">-->
                <!--<div>-->
                    <!--<p>广告名称:44343</p>-->
                    <!--<p class="col9 mt10 font13">2018-06-06 12:12:12</p>-->
                <!--</div>-->
                <!--<span class="color4">审核中</span>-->
            <!--</a>-->
            <!--<a class="flex_sb ptb20 item">-->
                <!--<div>-->
                    <!--<p>广告名称:44343</p>-->
                    <!--<p class="col9 mt10 font13">2018-06-06 12:12:12</p>-->
                <!--</div>-->
                <!--<span class="color3">投放中</span>-->
            <!--</a>-->
            <!--<a class="flex_sb ptb20 item">-->
                <!--<div>-->
                    <!--<p>广告名称:44343</p>-->
                    <!--<p class="col9 mt10 font13">2018-06-06 12:12:12</p>-->
                <!--</div>-->
                <!--<span class="color2">失败</span>-->
            <!--</a>-->
            <!--<a class="flex_sb ptb20 item">-->
                <!--<div>-->
                    <!--<p>广告名称:44343</p>-->
                    <!--<p class="col9 mt10 font13">2018-06-06 12:12:12</p>-->
                <!--</div>-->
                <!--<span class="color5">待投放</span>-->
            <!--</a>-->
            <!--<a class="flex_sb ptb20 item">-->
                <!--<div>-->
                    <!--<p>广告名称:44343</p>-->
                    <!--<p class="col9 mt10 font13">2018-06-06 12:12:12</p>-->
                <!--</div>-->
                <!--<span class="col9">已结束</span>-->
            <!--</a>-->
        </section>
    </article>
</body>
</html>
<script src="../js/jquery-1.8.3.min.js"></script>
<script src="../js/dlc.js"></script>
<script>
    dlc_request('/api/advertising/advertisingList',{ 'page':1,'limit':999,'status':3},function(res){
        console.log(res);
        if(res.code == 1){
            var list = res.page.list;
            var str = '';
            for(var i in list){
                str+='<a href="./ad_statis_details.html?id='+list[i].id+'" class="flex_sb ptb20 item">'+
                        '<div>'+
                        '<p><span class="mr10">广告名称:</span>'+list[i].name+'</p>'+
                        '<p class="col9 mt10 font13">'+format(list[i].createTime,'Y-m-d H:i:s')+'</p>'+
                        '</div>'+
                        '<span class="'+(list[i].status==1?'color4':list[i].status==2?'color5':list[i].status==3?'color3':list[i].status==4?'col9':'color2')+'">'+(list[i].status==1?'审核中':list[i].status==2?'待投放':list[i].status==3?'投放中':list[i].status==4?'已结束':list[i].status==5?'审核失败':'未知错误')+'</span>'+
                        '</a>';
            }
            if(str){
                $('.ad_list').css('background','#fff').html(str);
            }else{
                $('.ad_list').css('background','#f1f1f1').html(emptyTip('暂无记录'));
            }
        }else{
            dlctipbox.show(res.msg);
        }
    });
</script>






















